﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class ChiTietPhieuXetNghiemBUS
    {
        public static DataTable LayDanhSachChiTietPhieuXetNghiem()
        {
            return ChiTietPhieuXetNghiemDAO.LayDanhSachChiTietPhieuXetNghiem();
        }

        public static void ThemChiTietPhieuXetNghiem(ChiTietPhieuXetNghiemDTO obj)
        {
            ChiTietPhieuXetNghiemDAO.ThemChiTietPhieuXetNghiem(obj);
        }

        public static void XoaChiTietPhieuXetNghiem(int maChiTietPhieuXetNghiem)
        {
            ChiTietPhieuXetNghiemDAO.XoaChiTietPhieuXetNghiem(maChiTietPhieuXetNghiem);
        }

        public static void SuaChiTietPhieuXetNghiem(ChiTietPhieuXetNghiemDTO obj)
        {
            ChiTietPhieuXetNghiemDAO.SuaChiTietPhieuXetNghiem(obj);
        }

        public static ChiTietPhieuXetNghiemDTO LayThongTinChiTietPhieuXetNghiemTheoChiTietPhieuXetNghiem(int maChiTietPhieuXetNghiem)
        {
            return ChiTietPhieuXetNghiemDAO.LayThongTinChiTietPhieuXetNghiemTheoMaChiTietPhieuXetNghiem(maChiTietPhieuXetNghiem);
        }

        public static DataTable LayDanhSachChiTietPhieuXetNghiemTheoMaXN(int maPXN)
        {
            return ChiTietPhieuXetNghiemDAO.LayDanhSachChiTietPhieuXetNghiemTheoMaXN(maPXN);
        }

        public static DataTable LayDanhSachChiTietPhieuXetNghiemTheoMaPKB(string sql)
        {
            return ChiTietPhieuXetNghiemDAO.LayDanhSachChiTietPhieuXetNghiemTheoMaPKB(sql);
        }
    }
}
